dojo.provide("miaigo.model.sgf.properties.Text");

dojo.require("miaigo.model.sgf.SGFProperty");

dojo.declare(
    "miaigo.model.sgf.properties.Text",
    [miaigo.model.sgf.SGFProperty],
    {
	onApply: function(game)
	{
	    if ("C" == this.getID())
	    {
		game.setComment(this.getValue());
	    }
	},

	getValue: function(/*integer (optional)*/index)
	{
	    return this.getRawValue();
	}
    });